package com.base.data.application;

import android.app.Application;

import com.base.data.tools.SqliteUtils;
import com.orm.SugarContext;

public class DataBaseApp extends Application {


    @Override
    public void onCreate() {
        super.onCreate();
        //迁移数据库
        SqliteUtils.initDataBase(this);
        //初始化sugar
        SugarContext.init(this);
    }


    @Override
    public void onTerminate() {
        super.onTerminate();
        SugarContext.terminate();
    }


}
